<?php

namespace App\Models;

use Illuminate\Database\Eloquent\SoftDeletes;
use Watson\Validating\ValidatingTrait;
use Illuminate\Database\Eloquent\Model;

class SchoolHonor extends Model
{
    use SoftDeletes;
    use ValidatingTrait;


    protected $table='ggr_school_honors';


    protected $fillable = ['name'];

    protected $rules = [
        'name'          => 'required',
    ];

    protected $validationMessages = [
        'name.required'          => '荣誉名称必填',
    ];



    public static function getHonorList()
    {
        return self::select('id' , 'name')->lists('name','id')->toArray();
    }
}
